Hash Text Key
AutomatR.DefaultActivities.Cryptography.HashTextKey
The "Hash Text Key" activity in AutomatR is part of the Cryptography activities package, providing functionality to hash a string with a specified algorithm and encoding format, utilizing a key for enhanced security. This activity is essential for scenarios where an additional key is required to strengthen the hash generation process.
Properties
Name | Description |
---|---|
Input | |
Algorithm | Selects the hash algorithm to be applied to the input text with the provided key. Choose from available options such as HMACMD5, HMACSHA1, HMACSHA256, HMACSHA384, and HMACSHA512. Enum variables containing the desired algorithm. |
Text | Specifies the text to be hashed. This field only accepts strings and String variables. |
Key | Specifies the key to be used for hashing the specified text. This field only accepts strings and String variables. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Hash Text Key" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the result of the hashed input stored as a hexadecimal string. String variables to store the hash result for utilization in subsequent activities. |
How to use:
- Drag and drop the "Hash Text Key" activity onto the workflow.
- Configure the properties by selecting the hash algorithm, specifying the text to be hashed, and providing the key.
- Optionally, configure the delay.
- Execute the workflow to obtain the hash of the specified text using the chosen algorithm and key.
Example: Consider an example where the "Hash Text Key" activity is used to hash a text string "SensitiveData123" using the HMACSHA256 algorithm and a secret key:
Hash Text Key:
Algorithm: HMACSHA256
Text: "SensitiveData123"
Key: "SecretKey123"
Result: hashedResult
In this example, the activity applies the HMACSHA256 algorithm with the specified key to hash the text "SensitiveData123," and the resulting hash is stored in the string variable "hashedResult" for further use in the workflow.
Supported Hash Algorithms
- HMACMD5: Produces a 32-character hexadecimal hash using HMACMD5.
- HMACSHA1: Results in a 40-character hexadecimal hash using HMACSHA1.
- HMACSHA256: Produces a 64-character hexadecimal hash using HMACSHA256.
- HMACSHA384: Generates a 96-character hexadecimal hash using HMACSHA384.
- HMACSHA512: Results in a 128-character hexadecimal hash using HMACSHA512.
Note:
- The activity is designed to support HMAC-based algorithms, providing an additional layer of security by utilizing a key during the hash generation process.